export default {

	getUrlParams: function (url,key) {
		var href = url,query = {};
		href.replace(/([^?#*=&]+)=([^?#*=&]+)/g,(...arg)=>{
			let [,keyName,value] = arg;
			query[keyName] = value
		})
		if(query.hasOwnProperty(key))
		{
			return query[key]
		}
		else
		{
			return '';
		}
	},

	RequestUrlFormat(url) {
		
		return url;
	},
	getTimeStamp(){
		var timestamp = new Date().getTime()//返回数值单位是毫秒；
		return parseInt(timestamp/1000)
	},



};
